import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Details from '../views/Details.vue'
import shopCar from '../components/ShopCar'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/details',
    name: 'detail',
    component: Details
  },
  {
    path: '/shopCar',
    name: 'shopCar',
    component: shopCar
  }
  // {
  //   name: 'Top',
  //   component: Top,
  // }
]

const router = new VueRouter({
  routes
})

export default router
